package com.cs.spzx.manager.service;

import com.cs.spzx.model.dto.system.AssginRoleDto;
import com.cs.spzx.model.dto.system.SysUserDto;
import com.cs.spzx.model.entity.system.SysUser;
import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Stone
 * @version 1.0.1
 * @date 2025/1/1
 */
public interface UserService {

    PageInfo<SysUser> findByPage(SysUserDto sysUserDto, Integer pageNum, Integer pageSize);

    void saveSysUser(SysUser sysUser);

    void updateSysUser(SysUser sysUser);

    void deleteById(Long userId);

    @Transactional
    void doAssign(AssginRoleDto assginRoleDto);
}
